/**
 * 
 */
package com.xb.cloud.product.merchant.service.client.bo;

import java.util.HashMap;
import java.util.Map;

import org.mongodb.morphia.annotations.Embedded;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id;

/**
 * 系列品缓存某个商家发布的系列品不同系列组合对应的skuId;
 * 商家前台发布系列品sku的组合时候，插入数据到seriesAttributeCombSkuIdMap里
 * @author kexue
 *
 */
@Entity(value = "xb_product_shop_series", noClassnameStored = true)
public class ProductShopSeriesMongoBo {
	
	/**
	 * 联合主键 ,productId(虚品id)-shopId
	 */
	@Id
	private String productIdshopId;
	
	
	
	/**
	 *    系列属性key_value组合作为map的key , map的value是skuId
		  1-1_2-1 (红色 * 10cm) =>skuId1
		  1-1_2-2 (红色 * 20cm) =>skuIdId2
		  2-1_2-1 (黄色 * 10cm) =>skuIdId3
		  2-1_2-2 (黄色 * 20cm) =>skuIdId4
	 */
	@Embedded
	private Map<String,Long> seriesAttributeCombSkuIdMap=new HashMap<String,Long>();

	
	
	public String getProductIdshopId() {
		return productIdshopId;
	}

	public void setProductIdshopId(String productIdshopId) {
		this.productIdshopId = productIdshopId;
	}

	public Map<String, Long> getSeriesAttributeCombSkuIdMap() {
		return seriesAttributeCombSkuIdMap;
	}

	public void setSeriesAttributeCombSkuIdMap(Map<String, Long> seriesAttributeCombSkuIdMap) {
		this.seriesAttributeCombSkuIdMap = seriesAttributeCombSkuIdMap;
	}
	
}
